package com.gameObjects;

import android.util.Log;

import com.badlogic.androidgames.framework.gl.Camera2D;
import com.badlogic.androidgames.framework.gl.SpriteBatcher;
import com.badlogic.androidgames.framework.math.Rectangle;
import com.badlogic.androidgames.framework.math.Vector2;

public class Obstacle extends GameObject
{
	//public boolean active;
	public Vector2 size;

	public Obstacle(float x, float y, float w, float h) 
	{
		super(x, y, w, h);
	}
	
	public Obstacle() 
	{
		position = new Vector2();
		size = new Vector2();
	}
	
	public void InstantiateObstacle()
	{
		this.rectCollider = new Rectangle(this.position.x - size.x * 0.5f, this.position.y  - this.size.y * 0.5f, this.size.x ,this.size.y);
	}

	public void Update(Camera2D camera)
	{

	}
	
	public void SetX(float x){this.position.x = x;}
	public void SetY(float y){this.position.y = y;}
	public void SetW(float w){this.size.x = w;}
	public void SetH(float h){this.size.y = h;}

	@Override
	public void Draw(SpriteBatcher batcher) {
		// TODO Auto-generated method stub
		
	}

}
